function act() {
    if (cm.haveItem(4034128)) {
        cm.playerMessage(5, "已经获得了药草，拿回去给织田信长吧。");
        return
    }
    var b = cm.getNumberFromQuestCustomData(58976);
    var a = cm.addNumberForQuestCustomData(58904 + b, 1);
    if (b == 3) {
        cm.playerMessage(5, "获得了药草。");
        cm.gainItem(4034128, 1)
    } else {
        if (a == 10) {
            if (b == 2) {
                cm.playerMessage(5, "药草结了果实。")
            } else {
                cm.playerMessage(5, "药草成长到了第" + (b + 2) + "阶段。")
            }
            cm.setNumberForQuestCustomData(58976, b + 1);
            cm.getMap().getReactorById(8650012).forceHitReactor(null, b * 2 + 2)
        } else {
            cm.getMap().getReactorById(8650012).forceHitReactor(null, b * 2);
            cm.playerMessage(5, "共给予了" + a + "次灵魂。到第" + (b + 2) + "阶段药草还需要给予" + (10 - a) + "次灵魂。")
        }
    }
}
var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(e, d, c) {
    if (status == 0 && e == 0) {
        cm.dispose();
        return
    }(e == 1) ? status++ : status--;
    selectionLog[status] = c;
    var b = -1;
    if (status <= b++) {
        cm.dispose()
    } else {
        if (status === b++) {
            var f = cm.getReactor().getId();
            var a = cm.getReactor().getName();
            cm.sendOk("这个传送点 [" + f + " : " + a + "] 的脚本尚未修复。\r\n脚本位于： 脚本/反应堆/8650012.js ", 0)
        } else {
            cm.dispose()
        }
    }
};